/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tsystems.school.simpleclient;

/**
 *
 * @author 123
 */
class Contact {
    private String login;
    private boolean isOnline;
    private boolean isNewMessage;
    
    public Contact(String login) {
        this.login = login;
    }
    
    public String getLogin() {
        return login;
    }
    
    public boolean getStatus() {
        return isOnline;
    }
    
    public boolean getMessageFlag() {
        return isNewMessage;
    }
    
    public void setMessageFlag(boolean flag) {
        isNewMessage = flag;
    }
    
    @Override
    public String toString() {
        return login;
    }
}
